package fr.mmt.gisfizz.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import lombok.Getter;
import lombok.Setter;

/**
 * Role. <br/>
 *
 * @author Mathieu MAST
 */
@Entity
@Table(name = "role")
public class Role extends AbstractEntity {

    @Column(name = "code", unique = true)
    @Getter
    @Setter
    private String code;
    @Column(name = "label")
    @Getter
    @Setter
    private String label;

    @Override
    public String toString() {
        return code + " (" + label + ")";
    }
}
